/**
 * 访问记录
 */
import request from '@/utils/request'

export default {

       /**
       * 批删部门所有日月表
       */
        deleteByDptsAllRangeMonth(data) {
            return request({
                url: '/attend/segmentService/deleteByDptsAllRangeMonth',
                method: 'POST',
                data
            })
        },
    /**
    * 批删段落
    */
    deleteByRange(data) {
        return request({
            url: '/attend/segmentService/deleteByRange',
            method: 'POST',
            data
        })
    },

    /**
       * 批删日表
       */
    deleteByRangeDays(data) {
        return request({
            url: '/attend/segmentService/deleteByRangeDays',
            method: 'POST',
            data
        })
    },
    /**
       * 批删月表
       */
    deleteByRangeMonth(data) {
        return request({
            url: '/attend/segmentService/deleteByRangeMonth',
            method: 'POST',
            data
        })
    },

    computeDptsAll(data) {
        return request({
            url: '/attend/segmentService/computeDptsAll',
            method: 'POST',
            data
        })
    },
    computeDaysAll(data) {
        return request({
            url: '/attend/segmentService/computeDaysAll',
            method: 'POST',
            data
        })
    },
    computeMonthAll(data) {
        return request({
            url: '/attend/segmentService/computeMonthAll',
            method: 'POST',
            data
        })
    },

    computeSegment(data) {
        return request({
            url: '/attend/segmentService/computeSegment',
            method: 'POST',
            data
        })
    },
    computeDays(data) {
        return request({
            url: '/attend/segmentService/computeDays',
            method: 'POST',
            data
        })
    },
    computeMonth(data) {
        return request({
            url: '/attend/segmentService/computeMonth',
            method: 'POST',
            data
        })
    },
    /**
     * 保存
     */
    save(data) {
        return request({
            url: '/attend/segmentService/save',
            method: 'POST',
            data
        })
    },
    /**
     * 查询
     */
    query(data) {
        return request({
            url: '/attend/segmentService/query',
            method: 'POST',
            data
        })
    },
    /**
     * 导出工作日。xlsx
     */
    export(data) {
        return request({
            url: '/attend/segmentService/export',
            method: 'POST',
            data,
            responseType: 'blob'
        })
    },

    findById(id) {
        return request({
            url: '/attend/segmentService/findById/' + id,
            method: 'POST'
        })
    },
    deleteById(id) {
        return request({
            url: '/attend/segmentService/delete/' + id,
            method: 'POST'
        })
    },
}
